package com.htu.edu.mapper;

import com.htu.edu.bean.DeliveryAddress;

import java.util.List;

public interface DeliveryAddressMapper {
    /**
     * 获取地址列表
     * @param userId
     * @return List<DeliveryAddress>
     */
    public List<DeliveryAddress> listDeliveryAddressByUserId(String userId);

    /**
     * 删除该用户下的地址Id对应的地址信息
     * @param daId
     * @return row (int)
     */
    public  int removeDeliveryAddress(Integer daId);

    /**
     * 新增收货地址
     * @param address
     * @return row(int)
     */
    public  int saveDeliveryAddress(DeliveryAddress address);

    /**
     * 通过daId获得地址信息
     * @param daId
     * @return
     */

    public  DeliveryAddress getDeliveryAddressById(Integer daId);

    /**
     *修改地址配置信息
     * @param address
     * @return row(int)
     */
    public  int updateDeliveryAddress(DeliveryAddress address);

}
